package com.dao;

public class WeixinMemberInfoUtil {

    public static WeixinSubscribe getWeixinSubscribe(String openId)
    {
	String sql ="select * from weixin_subscribe where fromusername ='"+openId+"'";
	WeixinSubscribe weixinSubscribe = WeixinSubscribe.dao.findFirst(sql);
	return weixinSubscribe;
    }
    
    public static SettingMemberType getMemberType(String memeberType){
	String sql = "select * from  setting_member_type where type_code ='"+memeberType+"'";
	SettingMemberType sysMemeberType=SettingMemberType.dao.findFirst(sql);
	return sysMemeberType;
    }
    
    
    
    
}
